/**
 * 绑定一些公有的数据给seatType1指令使用
 */
define([
    "app"
],function (app) {
    app.directive("roomType1",function () {
        return {
            restrict:"E",
            replace:true,
            transclude:true,
            template:"<div ng-transclude class='room'></div>",
            scope:{
                changeHoveredSeat:"&",
                selectSeat: "&",
                unselectSeat: "&"
            },
            controller:["$scope",function ($scope) {
                console.log($scope.width);

                return {
                    changeHoveredSeat: $scope.changeHoveredSeat,
                    selectSeat: $scope.selectSeat,
                    unselectSeat: $scope.unselectSeat
                }
            }]
        }
    })
});